object ScalaVarDemo02 {
    def main(array: Array[String]): Unit = {
      var age = 18

      age = 20
      val sal = 200

      val dog = new Dog()
      println(dog.age)
      println(dog.sex)
      println(dog.name)
    }
  }

  class Dog {
    var age: Int = 20
    var sex: String = "公"
    var name: String = "王凯"
  }
